package com.znf.biz.system.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = {"首页"})
@RestController
public class IndexController {

    @GetMapping("/")
    public String index() {
        return "welcome";
    }

    @ApiOperation("获取用户信息")
    @GetMapping("/user")
    public String getUser(){
        return "张三";
    }
}
